package com.rongj.generation.core.util;

import java.io.File;

public class FileUtil {

    public static String getSysPath(){
        String path = System.getProperty("user.dir");
        path = path+ File.separator+"src/main/java";
        return path;
    }

    public static String mkdirFolder(String filePath, String uploadFile) {
        try {

            String newf = filePath + "/" + uploadFile + "/";
            File file = new File(newf);
            if (!file.exists()) {
                file.mkdirs();
            }
            return newf;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
